package com.sram.dao;

import java.util.List;

import org.hibernate.criterion.DetachedCriteria;

import com.sram.dao.impl.*;
import com.sram.entity.User;

public interface UserDao {
	public void addUser(User user);
	public void updateUser(User user);
	public void deleteUser(int id);
	public User getUserByUserNameAndPassword(String userName,String password);
	public User getUserByUserName(String userName);
	public List<User> findUser(DetachedCriteria detachedCriteria);
	public List<User> findall();
	public List<User> pageQuery(DetachedCriteria detachedCriteria, int firstResult, int pageSize);

}
